package day11.day12;

public class Penguin extends Pet {
    private String sex;



    public Penguin(String name, int health, int love, String sex) {
        super(name, health, love);
        this.sex = sex;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("宠物的性别："+this.sex);
    }
}
